package com.traffic.repository.login;



import com.traffic.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import javax.transaction.Transactional;

/**
 * @Author :
 * @Description :
 * @Date : create in 13:41 2017/6/21
 * @Modify by :
 */
@Repository
@Transactional
public interface UserRepository extends JpaRepository<User, Long> {

    User findByNameAndPassword(String name, String password);
}